package com.wzg;

public class FoodCategory {
    private String level1;
    private String level2;
    private String level3;
    private String level4;
    private String sure;

    // 必须有无参构造函数
    public FoodCategory() {}

    public FoodCategory(String level1, String level2, String level3, String level4, String sure) {
        this.level1 = level1;
        this.level2 = level2;
        this.level3 = level3;
        this.level4 = level4;
        this.sure = sure;
    }

    // getter和setter方法
    public String getLevel1() { return level1; }
    public void setLevel1(String level1) { this.level1 = level1; }

    public String getLevel2() { return level2; }
    public void setLevel2(String level2) { this.level2 = level2; }

    public String getLevel3() { return level3; }
    public void setLevel3(String level3) { this.level3 = level3; }

    public String getLevel4() { return level4; }
    public void setLevel4(String level4) { this.level4 = level4; }

    public String getSure() { return sure; }
    public void setSure(String sure) { this.sure = sure; }

    @Override
    public String toString() {
        return "FoodCategory{" +
                "level1='" + level1 + '\'' +
                ", level2='" + level2 + '\'' +
                ", level3='" + level3 + '\'' +
                ", level4='" + level4 + '\'' +
                ", sure='" + sure + '\'' +
                '}';
    }
}
